﻿using System;

namespace uTILLIty.Rave.Core.StorageAdapter
{

	/// <remarks>
	/// DomainLocal/Sicherheit: groupType 0x80000004 ResourceGroup/SecurityEnabled
	/// Global/Sicherheit: groupType 0x80000002 AccountGroup/SecurityEnabled
	/// DomainLocal/Sicherheit: groupType 0x80000004 ResourceGroup/SecurityEnabled
	/// Universal/Sicherheit: groupType 0x80000008 UniversalGroup/SecurityEnabled
	/// Global/Verteiler: groupType 0x2 AccountGroup
	/// </remarks>
	[Flags]
	public enum GroupTypes : uint
	{
		/// <summary>
		/// requires sAMAccountType 268435457 NON_SECURITY_GROUP_OBJECT
		/// </summary>
		Distribution = 0x0,

		/// <summary>
		/// AccountGroup
		/// </summary>
		Global = 0x2,
		/// <summary>
		/// ResourceGroup
		/// </summary>
		DomainLocal = 0x4,
		/// <summary>
		/// UniversalGroup
		/// </summary>
		Universal = 0x8,

		/// <summary>
		/// requires sAMAccountType 268435456 GROUP_OBJECT
		/// </summary>
		SecurityEnabled = 0x80000000,
	}
}